import { FormSchema } from '/@/components/Form';

export const growthRuleSchemas: FormSchema[] = [
  {
    field: 'time',
    component: 'Input',
    label: '设定时间',
    componentProps: {
      placeholder: '请输入数值',
    },
    colProps: { span: 12 },
  },
  {
    field: 'type',
    component: 'Select',
    label: '',
    colProps: { span: 10 },
    componentProps: {
      options: [
        {
          label: '分',
          value: '0',
        },
        {
          label: '小时',
          value: '1',
        },
        {
          label: '天',
          value: '2',
        },
      ],
    },
  },
  {
    field: 'min',
    component: 'Input',
    label: '设定增长量',
    colProps: { span: 12 },
    componentProps: {
      placeholder: '请输入最小数值',
    },
  },
  {
    field: 'max',
    component: 'Input',
    slot: 'max',
    label: '',
    colProps: { span: 12 },
    componentProps: {
      placeholder: '请输入最大数值',
    },
  },
];
